# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-lua
pkgver=0.1.0
pkgrel=0
pkgdesc="Lua grammar for tree-sitter"
url="https://github.com/MunifTanjim/tree-sitter-lua"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/MunifTanjim/tree-sitter-lua/archive/v$pkgver/tree-sitter-lua-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
7eceb729faacffd13328b7778e408219e76e5ae9aac38bdabd13584817633351161bfcc4074f0ce82c07a61054fdfe14ad5235713f2f2acf18bfd0b414b09a7b  tree-sitter-lua-0.1.0.tar.gz
"
